package com.util;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

public class MyDialog {
	
	public MyDialog() {
		JDialog jd = new JDialog();
		
		jd.setModal(false);
		jd.setSize(300, 200);
		jd.getContentPane().add(new JLabel("还不赶快交日报！", SwingConstants.CENTER));
		
		int w = Tool.getScreenWidth();
		int h = Tool.getScreenHeight();
		jd.setLocation(w - 300, h - 200 - 50);
		
		jd.setVisible(true);
		
	}
}
